{% extends "base_generic.html" %}
{% block content %}
<div class="container">
  <div class="card" style="max-width: 500px; margin: 40px auto;">
    <h2 style="color:#1976d2;text-align:center;">{{ author.last_name }}{{ author.first_name }}</h2>
    <p style="text-align:center;">生卒年：{{ author.date_of_birth|default:'未知' }} - {{ author.date_of_death|default:'未知' }}</p>
    <div style="text-align:center;margin-top:20px;">
      <a href="{% url 'author-update' author.pk %}" class="btn">编辑</a>
      <a href="{% url 'author-delete' author.pk %}" class="btn btn-danger">删除</a>
    </div>
  </div>
</div>
{% endblock %}
